package com.ywkj.ktyunxiao.app.interceptor;

import com.ywkj.ktyunxiao.utils.JsonResult;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.servlet.HandlerInterceptor;
import org.springframework.web.servlet.ModelAndView;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * Session拦截器
 * @author LiWenHao
 * @date 2017/12/22 13:14
 */
public class SessionInterceptor implements HandlerInterceptor {

    private static Logger logger = LoggerFactory.getLogger(SessionInterceptor.class);

    private static JsonResult jsonResult;

    static{
        jsonResult = new JsonResult();
    }

    @Override
    public boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler) throws Exception {

        return false;
    }

    @Override
    public void postHandle(HttpServletRequest request, HttpServletResponse response, Object handler, ModelAndView modelAndView) throws Exception {

    }

    @Override
    public void afterCompletion(HttpServletRequest request, HttpServletResponse response, Object handler, Exception ex) throws Exception {

    }
}
